package com.ruoyi.yzchu.domain;

import java.math.BigDecimal;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 yzc_order
 * 
 * @author ruoyi
 * @date 2025-04-06
 */
public class YzcOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long orderId;

    /** 用户ID（外键关联sys_user.user_id） */
    @Excel(name = "用户ID", readConverterExp = "外=键关联sys_user.user_id")
    private Long userId;

    /** 地址ID（外键关联yzc_address.address_id） */
    @Excel(name = "地址ID", readConverterExp = "外=键关联yzc_address.address_id")
    private Long addressId;

    /** 订单总金额 */
    @Excel(name = "订单总金额")
    private BigDecimal totalPrice;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 删除标志 */
    private String delFlag;

    /** 订单明细（从）信息 */
    private List<YzcOrderItem> yzcOrderItemList;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setAddressId(Long addressId) 
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }

    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<YzcOrderItem> getYzcOrderItemList()
    {
        return yzcOrderItemList;
    }

    public void setYzcOrderItemList(List<YzcOrderItem> yzcOrderItemList)
    {
        this.yzcOrderItemList = yzcOrderItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("addressId", getAddressId())
            .append("remark", getRemark())
            .append("totalPrice", getTotalPrice())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("yzcOrderItemList", getYzcOrderItemList())
            .toString();
    }
}
